package src1;

class Date
{
    public int year;
    public int month;
    public int day;

    public void setYear(int year)
    {
        this.year = year;
    }

    public void setMonth(int month)
    {
        this.month = month;
    }

    public void setDay(int day)
    {
        this.day = day;
    }

    public void printDate()
    {
        System.out.println(this.year + "\\" + this.month + "\\" + this.day);
    }
}
public class test
{
    public static void main(String[] args)
    {
        Date d = new Date();
        d.setYear(2024);
        d.setMonth(3);
        d.setDay(30);
        d.printDate();
    }
}
